-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Conversation
// we increase the amount of weight that we're allowed to use on the first message to try to prevent | ||
// the possibility of blockage of the queue. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this scenario is not quite clear to me yet
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The original UMP dispatcher guaraunteed one dispatch per block minimum with the weight limitation being a soft cap. This kept things running the case of a single heavy message. Now, we don't quite guarantee that, but the soft-cap gets lifted to this hard-cap for the first message per block to try to mitigate any blockage.
fn execute_xcm(_origin: MultiLocation, _message: Xcm<C>, _weight_limit: Weight) -> Outcome { | ||
Outcome::Error(Error::Unimplemented) | ||
} | ||
} | ||
|
||
/// Utility for sending an XCM message. | ||
/// | ||
/// These can be amalgamted in tuples to form sophisticated routing systems. | ||
pub trait SendXcm { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was reading this few hours ago and this was a fundamental part of the code without docs, thanks for filling 👍
* Introduce plurality XCM locations * Add RelayedFrom * DMP dispatch weight handling. * Add pallet for XCM sending, add routing logic. * Update error types & doc * Fix warnings. * Fixes * Fixes * Fixes * Bump Substrate * Fixes * Docs * Docs * Docs * Fixes * Fixes * Fixes * Update xcm/pallet-xcm/src/lib.rs Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com> * Docs * Fixes * Update lib.rs * Fixes Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com>
Tracking issue: #2841
This batch of work is mostly to allow governance VMP messages.
pallet-xcm
, this is a pallet which contains dispatchables to send and execute XCM messages. Also contains a MultiLocationOrigin
and a correspondingEnsureOrigin
implementation to recognise it as well as a body-majority.process_upward_message
in order to take the acceptable amount of weight to spend processing the message, and return an Option to indicate whether the weight limit was reached.XcmPallet
to Rococo runtime.TODO in another PR: